<?php
	class GoodsCateModel extends Model {
		protected $tableName='goodsCate';
		
	
		public function where($goodid){
			$sql='select g.cateID,c.name from '.$this->tableName.' as g,category as c where g.cateID=c.id and g.goodsID='.$goodid;
			$res=mysql_query($sql) or die(mysql_error());
			$data=mysql_fetch_assoc($res);
			//dump($data);
			return $data;
		}
	}
?>